/**
 * @filename:Adminuser 2022-2-27
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.admin.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;

/**   
 * @Description:TODO(后台用户实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_admin")
@ApiModel(value="sys_admin对象", description="后台用户表")
public class Adminuser extends Model<Adminuser> {

	private static final long serialVersionUID = 5929703160724912L;
	
	@TableId(value ="user_id", type = IdType.AUTO)  
	@ApiModelProperty(name = "user_id" , value = "编号")
    private Long user_id;
    
    @TableField(value = "name") 	
	@ApiModelProperty(name = "name" , value = "用户姓名")
    private String name;
    
    @TableField(value = "user") 	
	@ApiModelProperty(name = "user" , value = "用户名")
    private String user;
    
    @TableField(value = "pwd") 	
	@ApiModelProperty(name = "pwd" , value = "密码")
    private String pwd;
    
    @TableField(value = "role_id") 	
	@ApiModelProperty(name = "role_id" , value = "所属角色")
    private Integer role_id;
    
    @TableField(value = "note") 	
	@ApiModelProperty(name = "note" , value = "备注")
    private String note;
    
    @TableField(value = "status") 	
	@ApiModelProperty(name = "status" , value = "状态")
    private Integer status;
    
 	@TableField(value = "is_caller")
	@ApiModelProperty(name = "is_caller" , value = "是否客服")
	private Integer is_caller;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "创建时间")
    private Date create_time;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "role_name" , value = "所属分组")
    private String role_name;
    
    @TableField(value = "google_secret") 	
	@ApiModelProperty(name = "google_secret" , value = "谷歌密钥")
    private String google_secret;
    
    @TableField(value = "type") 	
	@ApiModelProperty(name = "type" , value = "用户类型")
    private String type;
    
 	@TableField(value = "update_time",fill=FieldFill.UPDATE) 
	@ApiModelProperty(name = "update_time" , value = "更新时间")
    private Date update_time;
    

	@Override
    public Serializable pkVal() {
        return this.user_id;
    }
   
}
